package top.xiaoshuaila.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "测试接口controller")
public class HelloController {
    @GetMapping("hello")
    @ApiOperation("返回一个hello")
    public String hello(boolean isok){
        System.out.println("Asfafa");
        if (isok)
        return "hello";
        else return "false";
    }
    @ApiOperation("基本权限判断")
    //@GetMapping("/employee/basic/hello")
    public String basic(){
        return "/employee/basic/hello";
    }
    @ApiOperation("高级权限判断")
    @GetMapping("/employee/advanced/hello")
    public String advanced(){
        return "/employee/advanced/hello";
    }
}
